package com.exp.service;

import com.jfinal.aop.Before;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.jfinal.plugin.activerecord.tx.Tx;

@Before(Tx.class)
public class UserService {
	public void save() {
		Record user = new Record().set("name", "Wang").set("age", 3);
		Db.save("t_user", user);
		int a = 1 / 0;
		Record user1 = new Record().set("name", "Wang").set("age", 3);
		Db.save("t_user", user1);
	}
}
